<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<fmt:setLocale value="pt-BR" />
<jsp:useBean id="categorias" scope="request" type="java.util.List" />
<html>
  <head>
    <title>Listar categorias</title>
  </head>
  <body>
    <h1>Listar categorias</h1>
    <%@include file="/include/fazerlogin.jsp" %>
    <display:table name="categorias" pagesize="10" requestURI="listar.do">
      <display:column property="id" title="#" />
      <display:column property="nome" title="Categoria"/>
      <display:column property="descricao" title="Descricao" />
      <display:column value="Editar" href="editar.do" paramId="id" paramProperty="id" />
    </display:table>
    <a href="novo.do">Nova categoria</a>
  </body>
</html>
